import request from '@/utils/request'

// 查询EmailMaterialFile列表
export function listEmailMaterialfile(query) {
  return request({
    url: '/email/emailMaterialfile/list',
    method: 'get',
    params: query
  })
}

// 查询EmailMaterialFile详细
export function getEmailMaterialfile(id) {
  return request({
    url: '/email/emailMaterialfile/' + id,
    method: 'get'
  })
}

// 新增EmailMaterialFile
export function addEmailMaterialfile(data) {
  return request({
    url: '/email/emailMaterialfile',
    method: 'post',
    data: data
  })
}

// 修改EmailMaterialFile
export function updateEmailMaterialfile(data) {
  return request({
    url: '/email/emailMaterialfile',
    method: 'put',
    data: data
  })
}

// 删除EmailMaterialFile
export function delEmailMaterialfile(id) {
  return request({
    url: '/email/emailMaterialfile/' + id,
    method: 'delete'
  })
}
